Standoff compensation for nuclear measurements

ABSTRACT

A nuclear logging-while-drilling measuring systems, and the correction of the formation property measurements for adverse effects of instrument standoff from the borehole wall, is disclosed. Detector responses for one or more downhole detectors are sampled and recorded over a time segment. The response samples are then sorted by magnitude, and a running integral of the sorted samples as a function of time is performed over the time segment. Linear segments are then fitted to the running integral, wherein each straight line segment is a function of one or more formation properties, and also a function of the standoff distance of the detector from the borehole wall. Segments are then combined to obtain a measure of one or more formation properties of interest such as formation density, where the adverse effects of borehole standoff are minimized. Standoff magnitude is also obtained and can be used to correct other logs, such as a neutron porosity log, for adverse effects of tool standoff and borehole size. Data are discarded from processing if measured in standoff conditions which exceed a predetermined standoff threshold. No independent caliper of the borehole is required to perform the standoff correction.

CROSS REFERENCES TO RELATED APPLICATIONS

This application is a continuation-in-part of application Ser. No. 09/579,971 filed on May 26, 2000.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention is directed toward the measure of properties of earth formation, and more particularly directed toward nuclear measuring systems and the correction of the formation property measurements for adverse effects of instrument standoff from the borehole wall. The invention can be used to make formation property measurements while drilling the borehole, or subsequent to drilling using wireline techniques.

2. Background of the Art

Essentially all nuclear instrument systems used to measure earth formation parameters from within a well borehole are adversely affected by borehole conditions. Borehole conditions include borehole fluid type, borehole irregularity, and the size of the spacing or “standoff” between the downhole measuring instrument and the wall of the borehole. To increase the accuracy, it is necessary to correct measured parameters for borehole conditions including standoff. This correction process is commonly known as “standoff correction”.

Nuclear measurement systems have been used for decades to measure various properties of earth formation penetrated by a well borehole. The first systems used downhole instruments or “tools” which were conveyed along the borehole by means of a “wireline” cable. In addition, the wireline served as a means of communication between the downhole tool and equipment at the surface, which typically processed measured data to obtain formation parameters of interest as a function of depth within the borehole. These measurements, commonly referred to as “well logs” or simply “logs”, include measures of formation natural gamma radiation, thermal neutron flux, epithermal neutron flux elastic and inelastically scattered neutron, capture gamma radiation, scattered gamma radiation, and the like. A variety of formation parameters are obtained from these measurements, or combinations of these measurements, such as shale content, porosity, density, lithology and hydrocarbon saturation. Most of these nuclear wireline measurements are adversely affected by the borehole. Standoff of the instrument from the borehole wall is an almost universal problem considering the inherently shallow radial depth of investigation of nuclear logging systems.

Wireline systems use a variety of mechanical means to minimize standoff by forcing the tool against the borehole wall. As examples, a prior art neutron porosity tool typically use a bow spring to forced the tool against the borehole wall thereby minimizing standoff effects. A typical scattered gamma ray density tool is constructed with a gamma ray source and one or more gamma ray detectors in a “pad” which is mechanically forced against the borehole wall to again minimize standoff effects. Even though controlling the physical position of a wireline nuclear tool within the borehole aids in minimizing borehole effects including standoff, other tool design and data processing techniques are used to further reduce these adverse effects. As examples, neutron porosity and density tools typically use two or even more radiation detectors at different spacings from a neutron or density source, respectively. Detector responses are then combined using a variety of algorithms to further minimize borehole effects in the final computed parameter of interest. As an example, a dual detector processing method known as the “spine and rib” technique was introduced in the 1960's as a means for compensating dual detector density wireline logs for the effects of standoff. This technique relies solely on the response of the two downhole detectors and a tool calibration to compensate for small tool standoffs that are not overcome by mechanical means. The method is effective for standoff magnitudes of generally less than one inch. For larger standoffs, the spine and rib system, used alone, is not an effective compensation means.

Wireline logging is applicable only after the borehole has been drilled. It was recognized in the 1960s that certain operational and economic advantages could be realized if drilling, borehole directional, and formation properties measurements could be made while the borehole is being drilled. This process is generally referred to as measurement-while-drilling (MWD) for real time drilling parameters such as weight on the drill bit, borehole direction, and the like. Formation property measurements made while drilling, such as formation density, are usually referred to as logging-while-drilling (LWD) measurements. The LWD measurements should conceptually be more accurate than their wireline counterparts. This is because the formation is less perturbed in the immediate vicinity of the borehole by the invasion of drilling fluids into the formation. This invasion alters the virgin state of the formation. This effect is particular detrimental to the more shallow depth of investigation nuclear logging measurements.

For brevity, only LWD systems will be discussed. The tools are typically mounted within a drill collar near a drill bit that terminates the lower end of a drill string. The diameter of the drill collar in typically smaller than the diameter of the drill bit. This factor, along with the fact that there is usually a certain amount of drill string “wobble” and “bounce” during drilling, results in a borehole with diameter greater than the bit gauge, which in turn results in varying standoff between the LWD instrument and the borehole wall. Furthermore, circulation of drilling fluid in the borehole tends to wash out or enlarge the borehole causing still greater and more unpredictable standoff. Even though the major elements of most LWD tools are mounted near the periphery of the drill collar and typically within one or more collar stabilizer fins, standoffs can be quite large and can change dramatically with each rotation of the drill string. Mechanical means such as bow springs and powered pad mandrels used in wireline counterparts are obviously not applicable as a means for minimizing standoff in a rotating drill string. Again for brevity, a prior art “gamma—gamma” density LWD system using preferably two gamma ray detectors will be discussed. Operational concepts of this type of density tool are known in the art. It should be understood, however, that many of the previously discussed difficulties and limitations are applicable to other prior art nuclear logging systems such as neutron porosity. LWD formation density systems differ from their counterparts in wireline by the fact that the measurement is made while the tool is rotating with the drill string, thereby causing varying standoff between the tool body and the formation. Typically, an LWD density tool may encounter standoffs anywhere from zero to one inch or greater, depending on the borehole shape and tool configuration. Count data from the preferably two axially spaced detectors are usually sampled at a much faster rate than rotational time, which results in fairly constant standoff per sample. Short sample time periods are used to increase the accuracy of the measurement. However, due to the short sampling time and the statistical nature of the measurement, the detector counts in each sample do not have sufficient statistical precision to apply a statistically meaningful standoff correction such as a spine and rib correction. To improve statistical precision of the measurement and subsequent corrections, count data are summed over a radial segment of the borehole before a standoff correction is applied. Although this improves statistical precision, accuracy is sacrificed.

In attempt to retain both statistical precision and accuracy, prior art LWD density, neutron porosity, and other types of nuclear tools often use independent systems to measure the radial shape of the borehole. This is often referred to as a “caliper” of the borehole. Caliper measurements are then combined with detector count data and a spine and rib or other type of correction algorithm to obtain borehole compensated density or other parameter of interest. The caliper is, in itself, a complete and self contained LWD tool with all of the associated complexity, initial cost, operational cost, and reliability problems. The caliper system, unlike wireline counterparts, can not make physical contact with the borehole wall since the drill string is typically rotating. Ultrasonic transducers are commonly used in LWD caliper systems. They define the shape of the borehole by measuring travel time of acoustic waves emitted from the transducer, reflected by the borehole wall, and subsequently detected by the transducer.

U.S. Pat. No. 5,397,893 and No. 5,091,644 to Daniel C. Minnette are related and disclose an LWD tool which measures formation density. An error minimization method is used to sort or “bin” count data from two detectors before applying a standoff correction. In a first embodiment, the borehole cross section is radially segmented and preferably divided into four quadrants. Counts recorded in each quadrant are sorted over multiple rotations of the tool by quadrant in which they are measured. The sums of sorted counts are subsequently combined to obtain a density measurement for a particular borehole segment, which is compensated to some degree, for standoff within that segment. Segmenting of the borehole is predetermined in that the system is initially set up to record counts preferably within 90 degree segments as the tool rotates within the borehole. Alternately, the borehole can be partitioned in a different manner if borehole conditions are thought to warrant such partitioning. As an example, boreholes known to be very radially irregular might warrant smaller segments, such as 45 degrees. The decision must be made before the LWD operation is initiated. A second embodiment of the Minnette system teaches a measurement from an independent borehole caliper, such as an acoustic caliper, to define the count sorting scheme prior to correcting density measurements for standoff. This overcomes the problem of changing borehole conditions, but adds complexity and cost to the system in the form of a stand-alone LWD borehole calipering system.

U.S. Pat. No. 5,486,695 to Ward E. Schultz discloses an LWD nuclear logging system which used an independent sensor, such as an acoustic transducer, to measure tool standoff. The system uses a method similar to Minnette's to correct for standoff by sorting or “binning” detector count data as a continuous rather than a discrete function of standoff. The independent tool standoff measurement is then combined with detector count data using various weighting schemes to obtain formation parameters of interest, which have been compensated for standoff. The system requires an independent tool standoff measuring system which, again, adds cost and complexity to the LWD.

U.S. Pat. No. 5,473,158 to Jaques M. Holeuka et al discloses methods and apparatus for measuring density, neutron porosity, and other formation parameters using a LWD system. One embodiment of the system uses ultrasonic transducers to determine standoff, and the standoff measurement is used to correct porosity, density and other parametric measurements for adverse effects of tool standoff. Once again, an independent borehole caliper instrument is required for the standoff measurement. A quadrature method of azimuthally partitioning the borehole is used in an alternate embodiment to detector responses from predetermined angular segments of the borehole. As an example, the borehole is divided into 90 degree segments, and means such as directional equipment (accelerometers, magnetometers and the like) or even count rate processing are used to define detector signals from the “bottom”, the “top”, and the “sides” of the borehole. The measurement from the segment with the least standoff is then chosen to be the best measurement. This introduces additional statistical uncertainty into the measurement in that significant amounts of measured data are not used to compute the parameters of interest.

U.S. Pat. No. 5,451,779 to Ronald L. Spross et al discloses a LWD density system which uses a “statistical flag” to determine when density measurements should be corrected for standoff. The flag compares actual statistical variations of measured count rates with theoretical statistical variations for the tool operating in a standard or gauge bore hole. The system requires control and monitoring of the rate of rotation of the tool in order to make meaningful comparisons between measured and theoretical statistical variations. If the difference between the two variations exceeds a predetermined value, an irregular section of borehole is “flagged” and appropriate corrections are made to the measured data using the spine and rib technique or other similar data correction schemes. In an alternate embodiment, an acoustic borehole caliper is used to flag irregular borehole conditions or tool standoff thereby requiring dedicated borehole calipering system with accompanying increase in hardware complexity and cost. Once a section of irregular borehole or a standoff condition is flagged, other means such as the spine and rib technique are used to correct the measured count rates, and to thereby obtain a borehole compensated density measurement.

U.S. Pat. No. 5,250,806 to Erik Rhein-Knudsen et al discloses apparatus for measuring the formation parameters density, neutron porosity, and photoelectric absorption (PF) factor. The system is embodied as a LWD tool, and no data processing methods are discussed. The density portion of the tool comprises a gamma ray source mounted eccentrically within a drill collar housing and two longitudinally spaced gamma ray detectors located in blade comprising a first set of stabilizer blades. The neutron porosity portion of the tool comprises a neutron source mounted concentrically within the drill collar housing and preferably two longitudinally spaced secondary radiation detectors (either neutron of gamma ray) located in a blade comprising a second set of stabilizer blades. PF is obtained from an energy spectrum of one or both of the gamma ray detectors in the density section. The preferred embodiment of the invention includes a pair of blade mounted, opposing ultrasonic transducers used to determine standoff which, in turn, is used to correct the neutron porosity and density measurements for adverse effects of tool standoff. There is no specific teaching of standoff correction methods with or without ultrasonic borehole size parametric measurements. The patent is directly only toward apparatus.

U.S. Pat. No. 5,175,429 to Hugh E. Hall, Jr. discloses a secondary LWD measurement system for determining tool displacement from the borehole wall, and the subsequent use of this displacement or standoff measurement to correct nuclear parametric measurements, such as density and neutron porosity, for adverse effects of standoff.

SUMMARY OF THE INVENTION

This invention is directed toward nuclear measurements within a well borehole. The invention is applicable to logging-while-drilling (LWD) and to wireline systems. The disclosure applicable to both LWD and wireline systems which provides a measure of one or more parameters of interest of an earth formation penetrated by a borehole. The measurements are corrected for adverse effects of the borehole including tool standoff from the borehole wall.

The invention is applicable to a variety of nuclear logging systems. Emphasis will, however, be directed toward the system embodied as a combination LWD density and neutron porosity tools. The neutron porosity tool can be used to determine other parameters, such as formation. For this reason, the neutron porosity tool will be referred to as the “neutron” tool, with the understanding that formation porosity is only one of several parameters of interest that can be measured using the tool. The density tool is preferably in close proximity to the neutron tool. The response of the density tool can be used to correct the response of the neutron porosity tool for adverse borehole effects including borehole size, drilling fluid weight, drilling fluid salinity and tool standoff.

Attention is first directed toward the density measurement. For purposes of discussion, the density tool will be embodied as a dual detector formation density tool comprising a preferably isotopic source of gamma radiation and two longitudinally spaced gamma ray detectors. The source and detectors are preferably mounted within the wall of a drill collar, hereafter referred to as the “tool”, which is mounted in a drill string in the vicinity of a drill bit. The tool rotates as the drill string is rotated thereby allowing the drill bit to advance the borehole. Tool rotation is not a necessary requirement to operate the invention. The invention is also operable when a downhole motor is used to rotate the drill bit, and the tool is above this rotating portion of the drill string.

As a brief summary of operating concepts of a dual detector density tool is presented so that the present invention can be more easily understood. Gamma radiation is emitted by the source, passes through any material between the tool and the borehole wall, enters the formation where it interacts with material within the formation, and a portion of the radiation is scattered back into the borehole at a reduced energy. A portion of radiation scattered back into the borehole is recorded by the detectors. Source gamma ray energy is selected so that the primary mode of reaction is Compton scatter, which is related to the electron density of the composite formation material including the formation matrix material and any fluid filling pore space within the matrix. Electron density is, in turn, is related to the “bulk” density of the formation. The count rate measured by the tool detectors can, therefore, be related to the formation property of interest, which is bulk density. This relationship is determined by calibrating the tool under known borehole and formation conditions, and is known in the art. Gamma radiation not only interacts with the formation, but also with any intervening material between the tool and the borehole wall. This intervening material includes borehole fluid and particulate material, known as “mudcake”, which builds up on the borehole wall due to invasion into the formation of borehole fluid. Mudcake and any other intervening material adversely affect the bulk density measurement. Two detectors are used to minimize the effects of mudcake and tool standoff. The responses of the two detectors can be combined to minimize the effects of standoff and mudcake using a variety of algorithms including the spine and rib algorithm. The effects of standoff are typically much more severe in nuclear LWD systems than in wireline systems, even though mudcake buildup is minimal and the borehole fluid type is constant or at least slowly varying with the drilling operation. An LWD density tool typically rotates continuously inside the borehole as the measurement is being made. If the tool rotates centralized within a borehole which is necessarily larger than the tool, detector counts rates will be constant as a function of time for a given formation density and borehole diameter. If the standoff is perhaps one inch or less, and the counts collected are statistically significant, the spine and rib method can be used to compensate for standoff, and an accurate measure of formation density can be obtained. Rarely in practice does the tool rotate concentrically within the borehole. Since most boreholes are not exactly vertical, and considering the torque on the drill bit and the flexibility of the drill string, the tool is most likely rotating against one side of the borehole. Recall that the source and detectors are preferably located within the wall of the tool. During a complete rotation of the tool, standoff that the density tool “sees” varies from essentially zero when the tool is oriented so that the source and detectors are facing a tool contact point on the borehole wall, increases to a maximum 180 degrees later when the source and detectors are facing the direction, and then decreases to essentially zero when the tool is again oriented so that the source and detectors are again face the borehole wall. Measured count rate is now a function of formation density, borehole diameter, and a variable standoff caused by the eccentric rotation of the tool within the borehole. A simple spine and rib analysis of the count rate data will yield statistically insignificant measurements or inaccurate measurements, or both, as will be detailed in a following section of this specification.

The present LWD density system collects or “samples” counts in each detector as the tool rotates. The sample time interval is selected to be relatively short when compared with the time required for one complete rotation of the tool. By selecting a short sample time interval, tool standoff varies insignificantly during the sampling. The short sample time interval results, however, in a count sample measure with a large statistical error. This would yield a statistically insignificant bulk density measurement if the spine and rib technique were applied to each set of detector count sample measurements. To overcome the statistics problem, samples are collected and stored for a sample period that typically includes several hundred or more count sample intervals and several rotations of the tool. It is desirable to make the sample period sufficiently long to minimize statistical error in the final density measurement, but also sufficiently short so that the change in true formation density seen by the tool is minimal. Samples from each detector are sorted by magnitude, and a running sum or integral of count rate data is performed over the sample period. If the tool is operating centered within the borehole, a plot of integrated counts as function of time will be a straight line over a selected sample period, with the slope of the line representing detector count rate which, in turn, represents an “apparent” density. Apparent densities are processed preferably using the spine and rib technique to obtain bulk density compensated for standoff. If the tool is operating eccentered within the borehole, integrated counts sorted by magnitude and plotted as a function of time over the sample period will be a non-linear curve. In this case, which as mentioned above, is typical a plurality of contiguous, straight line segments is fitted to the nonlinear curve using predetermined fitting criteria. Detector count sample measurements within each segment are summed, and combined with a time duration of the segment to obtain a segment count rate. Apparent density for the segment is then determined for a standoff over an azimuthal segment of the borehole. The use of count rate and subsequently apparent density from a fitted straight line segment is far more statistically significant than using count rate and associated apparent density from a single detector sample within the segment. Apparent densities obtained from the fitted straight line segments are then processed using the spine and rib or other correction technique to obtain a borehole compensated density for each segment. Weighting is used to emphasize measurements with minimal statistical uncertainty, and compensated densities from all segments are then combined to yield a composite, compensated bulk density that is accurate and statistically significant. Alternate means for determining density and standoff from the density tool response will be discussed in subsequent sections of this disclosure.

Attention is now briefly directed toward the neutron tool. The neutron tool responds mainly to the hydrogen content of the borehole environs. If it is assumed that most hydrogen is contained in pore space of earth formation and not in the rock matrix, then a tool response to hydrogen concentration can be related to formation porosity. Unfortunately, hydrogen is usually also present in fluid within the borehole, therefore the neutron tool response is also affected by borehole size, drilling mud weight, drilling mud salinity, and tool standoff. Porosity measurements must be corrected for these effects in order to obtain accurate parametric measurements. Previously discussed standoff data obtained from the density measurement can be used to correct the neutron tool response for borehole size and standoff effects.

It is known in the art that neutron tools respond to other elements and conditions, such as boron typically found in shales. The basis concept of the neutron prosity measurement is, however, based upon the neutron tool's response to hydrogen.

It is noted that the invention does not require a rotating tool. In cases where a downhole motor such as “mud” motor is used to rotate the bit, or the density measurements are made as the drill string is being withdrawn from the borehole, techniques disclosed in this specification are equally applicable. A rotating drill string and tool are used for purposed of discussion.

The present LWD system requires no independent borehole calipering means. No predetermined azimuthal segmenting of the well borehole is required, but the system can be used to measure azimuthal density values in predetermined segments of the borehole if desired. The system is automatic and operates effectively when the tool is operating centered or eccentered within the borehole. Measured data are compared with predetermined criteria before processing to insure that the system is operating within limits of radial investigation. Although the system has been summarized configured as a compensated density tool, the basic concepts are applicable to other nuclear LWD logging systems such as formation photoelectric factor measurements.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows the invention embodied as a dual detector LWD tool conveyed within a well borehole by an operating drill string;

FIG. 2a is a sectional view of the LWD tool operating centralized and with constant standoff in a borehole of a first diameter;

FIG. 2b is a sectional view of the tool operating centralized and with constant standoff in a borehole with a second and larger diameter;

FIG. 2c is a plot of detector count sample intervals as a function of time for the tool operating with constant standoff in boreholes of three different diameters;

FIG. 3 is a sectional view of the tool operating in a borehole eccentered and with variable standoff;

FIG. 4 illustrates running integrals of detector count intervals, after sorting by magnitude, plotted as a function of time with the tool operating with constant and varying standoffs;

FIG. 5 is a plot as a function of time of long spaced detector count samples, short spaced detector count samples, and tool standoff with the tool operating eccentered in a borehole with varying standoff;

FIG. 6 illustrates the line segment fitting method of the invention;

FIG. 7 is a graphical illustration of the spine and rib method for determining density values compensated for tool standoff;

FIG. 8 illustrates the segmentation of a time segment of data with the tool operating with varying standoff;

FIG. 9 illustrates azimuthal density and azimuthal standoff measurements that can be obtained with the invention;

FIG. 10 is a simplified flow chart of data measurement and processing steps;

FIG. 11 illustrates precision and accuracy of the present data processing method, compared with two other data processing methods, for periodically varying tool standoff;

FIG. 12 illustrates precision and accuracy of the present data processing method, compared with two other data processing methods, for randomly varying tool standoff;

FIG. 13 is a sectional view of a tool operating within a borehole for which predetermined azimuthal segments have been defined;

FIG. 14 is a flow chart of steps used to obtain compensated density measurements as a function of depth for predetermined segments of borehole;

FIG. 15a is a gamma ray spectrum measured with the long spaced detector and illustrating a single energy window used in determining data quality related to tool standoff;

FIG. 15b is a gamma ray spectrum measured with the short spaced detector and illustrating two energy windows used in determining data quality related to tool standoff;

FIG. 16 is a graphical illustration of the method used to process or to discard data based upon tool standoff;

FIG. 17 is a flow chart of the methodology used to evaluate data quality as a function of tool standoff;

FIG. 18 is a plot of incremental compensated density values measured in a borehole with two azimuthal densities and sorted by magnitude;

FIG. 19 is a conceptualized cross section of a borehole penetrating a formation of varying azimuthal density;

FIG. 20 illustrates the line segment fitting method to determine regions of constant azimuthal density;

FIG. 21 illustrates the line segment fitting method to determine standoff for a region of constant density;

FIG. 22 illustrates a continuous image of borehole density generated with a tool containing optional directional and orientation sensors;

FIG. 23 illustrates a LWD tool with density and neutron measuring devices, and with optional tool directional and orientation sensors; and

FIG. 24 is a flow chart illustrating the use of standoff measurements made with the density tool to correct data measured with the neutron tool.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

As stated previously, the invention is applicable to a variety of nuclear logging systems. The preferred embodiment will, however, be disclosed as a dual detector LWD density tool.

FIG. 1 shows an LWD density instrument 18 mounted within the wall of a drill collar 14, which will be subsequently referred to as the LWD tool. The density instrument 18 comprises a source of gamma radiation 20, which is preferably an isotopic source of ¹³⁷Cs or ⁶⁰Co. A “short spaced” radiation detector 22 and a “long spaced” radiation detector 24 are spaced from the source 20. Radiation detectors 22 and 24 are preferable scintillation type gamma ray detectors. The tool 14 is conveyed along a borehole 34 penetrating an earth formation 32 by a drill string 12. The drill string 12 is terminated at the lower end by a drill bit 16, and at the upper end by a kelly 26 which engages a rotary table 28. The rotary table is rotated preferably by a standard drilling rig (not shown) known in the art thereby rotating the drill string 12, the attached tool 14, and the drill bit 16 to advance the borehole 34. In the alternate, a downhole motor (not shown) can be used to rotate the bit and to provide drilling directional control. The tool 14 is shown standing off of the wall of the borehole 34 by a distance 30. FIG. 1 also shows a processor 31 that is in communication with the density instrument as illustrated conceptually with a broken line 37. The processor 31, which is used to control the density instrument 18 and process measured data, can be located within the tool 14 or at the surface of the earth.

FIG. 2a is a sectional view of the tool 14 rotating centralized, as shown conceptually by the arrow, within the borehole 34. The standoff 30 of the instrument section 18 is constant through the entire rotation. FIG. 2b is another sectional view of the tool 14 rotating centralized within a borehole 34′ of larger diameter, with a corresponding standoff 30′. For purposes of discussion, it is assumed that the density of the formation 32 remains constant. As the tool rotates, the LWD density system collects or “samples” counts in each detector. The sample time is selected to be relatively short interval when compared with the time required for one complete rotation of the tool. By selecting a short sample time interval, any variation in tool standoff, as will be shown in subsequent examples, is minimal. The statistical error associated with each sample is, however, large. This would yield a statistically insignificant bulk density measurement if the spine and rib technique or similar correction method were applied to each set of detector count rate samples.

FIG. 2c shows detector count samples 41 plotted as a function of time. Curve 40 represents samples measured by one of the detectors 22 or 24 with the tool 14 rotating in the smaller borehole 24 as shown in FIG. 2a. The count rate in the short spaced detector 22 is typically greater than the corresponding count rate in the long spaced detector 24, but the behavior of both detector responses is the same. Curve 42 represents samples measured by the same detector with the tool rotating centralized in the larger borehole 34′ as shown in FIG. 2b. These examples assume that the density of the formation is greater than the density of any intervening material within the tool standoff. Curve 44 represents samples measured by the same detector with the tool rotating centralized in a still larger borehole (not shown) with the density of the formation remaining constant. Since the tool 14 is rotating centralized and the standoff does not vary as a function of azimuthal position of the tool 14, the samples 41 for a given borehole size and formation density remain constant in time, within statistical variations, as shown in FIG. 2c.

FIG. 3 is a sectional view of the tool 14 rotating eccentered within a borehole 34″. The standoff 30″ of the instrument section 18 varies as the tool rotates. FIG. 5 is a plot of count samples 41′ from the short spaced detector 22 with a smooth curve 50 being drawn through these points. Included also in FIG. 5 is a plot of count samples 41″ from the long spaced detector 24 which, for given formation and borehole conditions, is typically lower than the corresponding short spaced detector samples 41′. A smooth curve 52 has been drawn through the count samples 41″. Count samples are in arbitrary units for purposes of illustration, and are represented by the left hand ordinate of FIG. 5. FIG. 5 also illustrates a curve 54 representing the magnitude of the variable standoff 30″ as the tool 14 rotates. For purposes of illustration, it is assumed that standoff 30″ varies between 0.00 and 0.75 inches (in.) as denoted by the right hand ordinate. It is apparent that, for a given formation density and borehole condition, count samples from both long and short spaced detectors vary with standoff. In this example, standoff 30″ monotonically increases as the tool 14 rotates to a maximum standoff 0.75 in. when the instrument section 18 faces the borehole wall opposite from the wall which the tool 14 contacts. Standoff 30″ then monotonically decreases until the instrument package 18 contacts the wall of the borehole 34″. This pattern repeats as the tool makes multiple rotations.

Still referring to FIGS. 3 and 5, count samples from both long and short spaced detectors 24 and 22 are collected and stored for a sample period which typically includes several hundred or more samples 41′ measured over several rotations of the tool 14. It is desirable to make the sample period sufficiently long to minimize statistical error in the final density measurement, but also sufficiently short so that the change in true formation density seen by the tool is minimal during the advancing of the tool. Assume that the tool 14 is rotating at 120 revolutions per minute (rpm) and that the count samples 41′ are collected every 50 milliseconds (ms). During each small sample of 50 ms, the standoff does not vary by more than 0.1 in. using the rather typical example shown in FIG. 5. A spine and rib type correction could handle such small standoff variation. The problem is, however the relatively small number of counts collected by the detectors 22 and 24 during each count sample 41′, and especially in the long spaced detector 24 which is spaced further from the source 20. Statistical fluctuations of the data samples 41′ will cause large errors in the corrected density if they are used as individual measurements in a spine and rib type correction.

It is noted that the invention does not require a rotating tool. In cases where a downhole motor such as “mud” motor is used to rotate the bit, or the density measurements are made as the drill string is being withdrawn from the borehole, techniques disclosed in this specification are equally applicable. A rotating drill string and tool are used for purposed of discussion.

The data processing system of the present invention greatly minimizes the problem of statistical variations of each count sample by fitting a curve to a running count integration or summation technique prior to determine apparent and finally compensated density values. Attention is directed to FIG. 4 which shows curves fitted to integrated segment counts or “integral counts” plotted as a function of time. Details of the running count integration and the fitting will be presented in a subsequent section of this specification. If the tool is operating centered within the borehole as shown in FIG. 2a or 2 b, a fitted curve will be linear over a selected sample period t_(s) shown at 64. For a given formation density, line slope will be a function of standoff. As an example, the tool 14 operating in a smaller borehole as shown in FIG. 2a will result in a linear curve 56 which has a smaller slope than a linear curve 58, which is obtained with the tool operating in a larger borehole 34′ as shown in FIG. 2b. A nonlinear curve of the form 62 is obtained when the tool is operating eccentered within a borehole as shown in FIG. 3. Count samples are preferably integrated for both detectors, although the method is applicable to only a single detector. As an example, an integral of count segments 41″ for the long spaced detector shown in FIG. 5 will yield a curve of the form 62 shown in FIG. 4. Likewise, an integral of counts 41′ from the short spaced detector will also yield a curve of the form 62, but with greater absolute integral counts per unit time and with a greater slope.

The slope of each segment curve is also a function of apparent formation density that the detector “sees”. As an example three integral count sample curves for a tool operating centralized within a borehole (see. FIG. 2a or 2 b) for varying formation density. Segment curve slopes will decrease with densities ρ₁, ρ₂ and ρ₃, respectively, where ρ₁>ρ₂>ρ₃. Stated another way, each segment is a function of both formation density and tool standoff.

To summarize, a running integral of count samples from each detector over a sample period t_(s) will yield a curve with a shape indicative of constant or varying tool standoff, the magnitude of the standoff, and the “apparent” density of material which the detector “sees”. The use of this information to obtain accurate and statistically compensated bulk density formation values will be developed in the following sections. The integration and fitting method provides results with much less statistical variation than would be obtained using individual count samples measured by the detectors.

3. Specifics of the Data Processing

Assume that for a given detector, count samples are collected over a relatively short time interval Δt, where Δt is 50 ms. Count samples are accumulated preferably contiguously over the entire sample period t_(s) which contains n time intervals Δt. As an example, if n=100, t_(S)=5.0 sec. The sample counts collected during t_(s) are next sorted by magnitude yielding count samples c(k) ranging from c(1) which is the smallest to c(n) which is the largest, The following nomenclature will be used in describing the data processing:

I(p)=ΣI(k−1)+c(k)  (1)

where

k=(1,2,3, . . . , p−1, p)

Starting at p=1

I(1)=c(1)

I(2)=I(1)+c(2)

I(3)=I(2)+c(3)

*

*

I(p)=I(p−1)+c(p)

*

*

I(n−1)=I(n−2)+c(n−1)

I(n)=I(n−1)+c(n)

Using this sorting and integration method, I(p) is always greater than I(p−1). A plot of I(p) as a function of corresponding time intervals Δt is shown in a hypothetical and somewhat exaggerated illustration in FIG. 6. The points 43 represent the sorted and integrated count samples I(p) encompassing p=1 to n, over the entire time segment t_(s) (shown at 64) of preferably several seconds. Only a few I(p) points 43 are shown for clarity of the illustration. A nonlinear curve 68 (solid line) is drawn through the data points 43 to illustrate a LWD tool operating with varying standoff as shown in FIGS. 3 and 5. If the tool were operating with a constant standoff as shown in FIGS. 2a and 2 b, the curve would be linear and of the form 56 or 58 shown in FIG. 4.

Still referring to FIG. 6, a straight line 70, shown as a broken line, is fitted to the first h values of I(p) where p 1 . . . , h, and a goodness of fit parameter is obtained such as chi-square. If the fit parameter is less than a predetermined fit value, another point I(h+1) is added and a new fit parameter is obtained. This process is repeated until the fit parameter exceeds the predetermined fit value, and the first straight line segment 70 is thereby determined. The segment 70 spans a time interval t₁ shown at 76. The entire process is again repeated starting with the specific value of I(p) identified as 43′, and a second straight line segment 72, shown as a broken line, is thereby determined. The straight line segment 72 spans a time interval t₂ shown at 78. The entire process is yet again repeated starting with a specific value of I(p) identified as 43″, and ending with the final value I(n) in the yielding a third straight line segment 74, shown as a broken line spanning the time interval t₃. In the hypothetical example shown in FIG. 6, three straight line segments 70, 72 and 74 are fitted to all of the data I(p) falling within sample period t_(s). Stated another way, the integration and fitting process is stopped at the termination of the time segment t_(s) shown at 64. If the standoff does not vary as reflected in the data in FIG. 2c and reflected in the curves 56 and 58 of FIG. 4, only a single straight line segment will be fitted to a plot of I(p) versus time intervals.

Count data c(k) within each line segment are summed. Each sum from both short spaced and long spaced detectors contains both density related and standoff related information. Density values not corrected for standoff, known as “apparent” density values, are next determined from the count sums from both the long and short spaced detectors. It should, however, be understood that the method is applicable to only one detector response. It is preferred, however, to process both detector responses to increase statistical precision as will be shown in a subsequent section of this specification. It is also preferable to convert the count sums to count rates using the time intervals over which they span, such as intervals 76, 78 and 80 shown in the example of FIG. 6. The apparent density ρ_(LS) for the long spaced detector is

ρ_(LS)=(ln(R _(LS) /C _(LS))/D _(LS))  (2)

and for the short spaced detector is

ρ_(SS)=(ln(R _(SS) /C _(SS))/D _(SS))  (3)

where

R_(LS)=the count rate obtained from the appropriate linear segment of the long spaced detector response;

R_(SS)=the count rate obtained from the appropriate linear segment of the short spaced detector response; and

C_(XS) and D_(XS) (X=L,S) are constants functions of detector location and other tool parameters which are determined by calibrating the tool in formations with known densities.

Compensated bulk density, ρ_(b), is next computed from apparent long and short spaced detector densities using preferably the spine and rib technique. FIG. 7 illustrates graphically the basic concepts of the technique, and consists of a plot of ρ_(b)−ρ_(LS) on the ordinate verses ρ_(LS)−ρ_(SS) on the abscissa. Data points 98 represent values determined from the various line segments discussed above, and fall within statistical precision along a curve 90. The quantity ρ_(LS)−ρ_(SS) is computed from measured quantities using equations (2) and (3), entered at 92 on the origin, and a broken line is extended vertically until it intercepts the curve 90 at point 94. A horizontal line is then extended from the point 94 until it intersects the ordinate at 96 yielding a value of β_(b)−ρ_(LS). Since ρ_(LS) is known from equation (2), the quality of interest Pb can be computed. Although the illustrated solution is graphical, it should be understood that ρ_(b) is computed from appropriate spine and rib or other suitable standoff algorithms using a processor. The statistical precision of ρ_(b) is also determined at this point, and details of this process will be discussed in a subsequent section of this specification. For a vertical increment of well borehole, values of ρ_(b) determined above from each line segment are statistically weighted, and a compensated bulk density ρ_(B) for that segment of borehole is obtained by combining weighted values of ρ_(b). Weighting can be based upon statistical precision of ρ_(b), or on the magnitude of the corresponding standoff, or any other meaningful statistical weight indicator.

As the tool is conveyed along the borehole, the earliest or most “up-hole” value of c(k) is dropped, a new value of c(k) is applied to span fully the time interval t_(s) with data. The entire integration, fitting, weighting process is repeated thereby yielding a log of as a function of depth in the borehole.

4. Accuracy and Precision

In order to illustrate the accuracy of the method, it is necessary to consider how statistical fluctuations of the detector counts propagate into the corrected formation density calculation.

The corrected bulk density is generally given by:

ρ_(c)=ρ_(LS) +A(ρ_(LS)−β_(SS))+B(ρ_(LS)−ρ_(SS))  (4)

where β_(c) is the corrected density, ρ_(LS) is the apparent density of the long-spaced detector, ρ_(SS) is the apparent density of the short-spaced detector, and A and B are empirical coefficients functions primarily of tool design. The above equation is a general expression for corrected bulk density, therefore it is expressed in terms of ρ_(c) rather than ρ_(b). The apparent detector density is calculated from:

ρ_(XS)=(ln(R _(XS) /C _(XS)))/D _(XS)  (5)

where R_(XS) is the count rate of the X-spaced detector (X=L or S) and C_(XS) and D_(XS) are constants functions of detector location and other tool parameters. These two constants are determined by calibrating the tool in formations with known densities. Assuming that the statistical precision of the detector counts is equal to the square root of the counts, the statistical error in the apparent detector density is given by:

σ(ρ_(XS))=σ(R _(XS))/(D _(XS) R _(XS))=1/(D _(XS)(tR _(XS))^(1/2))  (6)

where t is the sampling time is seconds. In these examples, D_(SS) is about 0.3 and D_(LS) is about 2.2. The statistical precision of the corrected density can then be derived from basic principles and is given by:

σ(ρ_(C))=([(σ²(ρ_(LS)))²(∂ρ_(C)/∂ρ_(C))²]+[(σ²(ρ_(SS)))²(∂ρ_(C)/∂ρ_(SS))²])^(1/2)  (7)

∂ρ_(C)/∂ρ_(SS) =−A−2B(ρ_(LS)−ρ_(SS))  (8)

∂ρ_(C)/∂ρ_(LS)=(1+A)+2B(ρ_(LS)−ρ_(SS))  (9)

For any given number “n” of incremental corrected samples, the corrected formation density, ρ_(C,AVE), is calculated from the sample densities ρ_(Ci) and weighted with the standard deviations σ_(Ci) using the relationship $\begin{matrix} {\rho_{C,{AVE}} = {\left\lbrack {\sum\limits_{t = 1}^{n}\quad \left( {\rho_{Ci}/\sigma_{Ci}^{2}} \right)} \right\rbrack/\left\lbrack {\sum\limits_{t = 1}^{n}\quad \left( {1/\sigma_{Ci}^{2}} \right)} \right\rbrack}} & (10) \end{matrix}$

To access the precision and accuracy of the method, two alternative methods are presented as comparisons with the disclosed method of processing count data and determining compensated or corrected bulk formation density:

Method A

The apparent and corrected densities ρ_(Ci) (i=1 . . . , n) for each small sample are calculated and then numerically averaged. If the data has no statistical fluctuations, this method will produce the best estimate of formation density since there is virtually no variation in standoff of each sample. Conversely, if the data has large statistical fluctuations, this method will be statistically unstable and will produce erroneous results.

Method B

The count data c(i) for both long and short spaced detectors are summed for the entire time period t_(S), and apparent and corrected densities are determined from the summations of the count data. If standoff does not vary during the time interval t_(S), this method should be both statistically stable and accurate. Conversely, if standoff changes significantly within the time interval t_(S), the method will produce erroneous results despite statistical precision.

Two different operating examples are considered in evaluating accuracy and statistical precision:

EXAMPLE 1

An 8 in. diameter tool is rotating in place in a 8.75 in diameter borehole resulting in continuous variation in standoff from 0.00 in. to 0.75 in. similar to the situation depicted in FIG. 5. The rotation speed is assumed to be 120 rpm, data is sampled at a time interval Δt=50 ms, and the sampler period is t_(S)=5 sec.

EXAMPLE 2

An 8 in. diameter tool is rotating in place in a 8.75 in diameter borehole. This standoff in this example is varying randomly as shown in FIG. 8, (rather than contiguously as in example 1), from 0.00 in. to 0.75. Data is again sampled at a time interval Δt=50 ms, and the sample period is t_(S)=5 sec.

For each method and for each example, 100 “test cases” comprising sample periods of Δt 50 ms were taken to obtain a fair assessment of statistical variation and accuracy, with accuracy being defined conventionally as a comparison between the magnitudes of measured and true formation density. In both examples, it is assumed that the true formation density is 2.71 grams/cubic centimeter (gm/cc) and the borehole is filled with a mud of density 1.25 gm/cc. Random Guassian statistics plus 1% random noise were added to the data to simulate realistic LWD conditions. Apparent densities were corrected using the spine and rib method.

FIG. 11 illustrated the results of the three methods of processing measured count data for example 1. The difference in computed density and true formation is plotted as a function of test case. Diamond points identified as 182 represent results using method A. Crosses identified as 180 represent results using method B, and the squares identified as 184 represents results obtained using the previously discussed methods of the present invention. A broken line 186 represents the situation in which measured density equals true density, as denoted by the point 188 plotted at zero on the measured versus true ordinate. Examining the plot, it is apparent from the point scatter that all three methods yield essentially the same precision, regardless of how the individual test cases are binned and whether binning is done prior to or after correction. In terms of accuracy, the method of the present invention yields superior results with an average deviation from the true density of about 0.002 gm/cc and a maximum error of 0.018 gm/cc. Summing the data regardless of the standoff (method B) has an average accuracy of 0.04 gm/cc deviation from true formation density, and a maximum error of about 0.067 gm/cc. This is about two to three times greater that what is considered generally acceptable for this type of measurement. Correcting every small test case sample and then averaging the corrected density data (method A) also shows poor accuracy of about 0.036 gm/cc deviation from true density, with a maximum error of about 0.052 gm/cc when compared with methods A and B.

FIG. 12 illustrates the results obtained using the three data processing methods for example 2. Once again, the difference in computed density and true formation is plotted as a function of test case, diamond points identified as 182 represent results using method A, crosses identified as 180 represent results using method B, and squares identified as 184 represents results obtained using the methods of the present invention. The broken line 186 again represents the situation in which measured density equals true density, as denoted by the point 188 plotted at zero on the measured versus true ordinate. Again, all three methods yield essentially the same precision. The methods of the present invention yield superior accuracy results with an average deviation from the true density of about 0.002 gm/cc and a maximum error of 0.019 gm/cc. Method A has an average accuracy of 0.036 gm/cc deviation from true formation density, and a maximum error of about 0.046 gm/cc. Method B has an accuracy of about 0.020 gm/cc deviation from true density, with a maximum error of about 0.045 gm/cc. It is apparent that method B is more accurate in example 2 than in example 1. The reason for the difference lies in the standoff patterns used in the two examples. In the second example, standoff is equally distributed between 0.00 in. and 0.75 in. In the first example, the standoff distribution is skewed toward the very low and the very high standoffs. About 33% of the data were at a standoff between 0.00 and 0.15 in., 30% of the data were between 0.60 and 0.75 in., and only 37% of the data were between 0.15 and 0.60 in. Since the effects of standoff on detector counts is fairly linear while the relationship between the detector counts and formation density is exponential, summing data from such a distribution results in an erroneously high count rate and hence a lower calculated formation density.

5. Azimuthal Logs

FIG. 8 shows the modeling data obtained in the second example discussed above for a sample time t_(S)=5 sec as shown at 120. The integration method yields the monotonically increasing curve 100. The fitting process yields nine straight line segments S_(i) (i=1, . . . , 9). S₁, S₂, S₃, S₄ and S₉ are shown at 102, 104, 106, 108 and 110, respectively, as examples. The time duration t_(i) of the respective samples are shown at 112, 114, 116, 118 and 120, respectively. As mentioned previously, the segments S_(i) contain information not only related to density, but also related to the magnitude of the standoff corresponding to that segment. From the data shown in FIG. 8, the following standoff values for each segment can be computed and are tabulated in Table 1.

TABLE 1 S_(i) t_(i) Average Standoff (in) 1 0.48 0.025 +/− 0.005 2 0.77 0.056 +/− 0.007 3 0.59 0.129 +/− 0.012 4 0.62 0.265 +/− 0.013 5 0.57 0.387 +/− 0.015 6 0.60 0.552 +/− 0.014 7 0.68 0.635 +/− 0.011 8 0.65 0.695 +/− 0.007 9 0.14 0.733 +/− 0.006

In the discussion above, compensated bulk density ρ_(b) from each line segment S_(i) for each detector is computed, and a weighted average based upon the magnitude of each segment standoff is used to compute ρ_(B), which is the bulk density for the vertical interval of borehole.

Parameters produced by the methods of the invention can be used to generate azimuthal logs of ρ_(b) as a function of depth within the well borehole. The time values t_(i) are indicative of the relative time the tool spends within the borehole at the corresponding standoff if it is assumed that the rotation of the bit is constant. Values of variable standoff as shown in Table 1 can be combined with the time intervals t_(i) to map a cross section of the borehole. The above parameters are of particular interest in LWD in deviated well boreholes, and can be used to “geosteer” the drill bit.

Attention is directed to FIG. 9 which is a polar plot of the data in Table 1. For purposes of discussion, assume that the data represents integer number of tool revolutions over a given depth increment of borehole. As an example, the sum of all values of t_(i) is approximately 5 sec (i.e. t_(s)=5 sec). At a bit rotation of 120 rpm, the data would represent approximately 10 revolutions. Segment 1 therefore represents an azimuthal segment of borehole of approximately 34 degrees, segment 2 and azimuthal segment of approximately 54 degrees, and so forth. The broken curve 130 represents the standoff variation as a function of a reference angle Φ shown at 136. The standoff varies between 0.025 in. to 0.733 in. using the scale 132. Also shown are corresponding values of corrected formation density ρ_(b) for each segment S_(i), represented by the curve 140 and the density scale 134.

FIG. 9 is intended to illustrate the types of tool position operation information and azimuthal density information that can be obtained from the methodology of the invention. As an example, a “map” of the borehole with respect to the position of the tool can be generated using azimuthal standoff data. This map, if combined with a measure of tool position within the borehole using independent means such as rate gyros and inclinometers, can be used to generate a true map of the borehole wall. The standoff information shown in the curve 130 can also be used to correct other LWD logging systems for standoff, such as a neutron porosity log.

It is also noted that gamma ray energy spectra can be measured with one or both of the detectors 22 and 24 (see FIG. 1). Ratios of various energy regions or energy windows can be used to measure the photoelectric factor (PF) of each azimuthal segment represented by each segment S_(i), which in turn can be used to extract the lithology of the formation. A weighted average similar to that used to combine values of ρ_(b) to obtain ρ_(B) can also be used to obtain a weighted azimuthally averaged value of PF for the entire segment of borehole.

6. Data Processing Flow Chart

The previously discussed data processing method for the density tool is summarized in the flow chart of FIG. 10. The values of c(k) within the time interval t_(s) are measured at 142. Values of c(k) are sorted by magnitude at 144 and arranged in increasing magnitude. Data measured under conditions of excessive tool standoff are preferably discarded using criteria discussed and illustrated in a subsequent section of this disclosure. The running integral sums I(k) are computed at 146, and straight line segments are fitted at step 148. At step 150, values of c(k) for each straight line segment S_(i) are summed, apparent long spaced and short spaced densities are computed, and a corrected bulk density value ρ_(b) for each segment is computed. A weighted average value of the values of ρ_(b) is computed at step 152 yielding an azimuthally weighted averaged bulk density value ρ_(B) for a vertical interval of borehole. As the LWD tool advances the borehole, the earliest value of c(k) is discarded, a new value is measured completing the number of sample counts within ts, and processing returns to the step 142. This process continues until the drilling operation is completed thereby yielding a log of ρ_(B) as a function of depth.

As alternate processing steps, azimuthally segmented values of corrected density, namely, ρ_(b), can be plotted as a function of depth at step 158. Another alternate processing step is the plotting of standoff distance as a function of azimuthal segment and depth at step 160. Yet another alternate processing step is the plotting of PF as a function of depth at step 162. Additional density processing methods will be discussed in detail in a subsequent section of this disclosure.

7. Polar Plots of Density

Corrected density logs of predetermined sectors of the borehole can be obtained using the methodology of the present invention. As an example, the borehole can be divided to four quadrants. It is also desirable to know the absolute orientation of the quadrants. Most MWD and LWD drilling strings convey some type of directional package which is used to define the path of the well bore and the position of the drill bit. The directional package can, therefore, be used to obtain absolute orientation of the preselected borehole quadrants.

FIG. 13 shows a sectional view of a borehole 35 which has been sectioned into four quadrants. Alternately, the borehole can be partitioned into any number of equal or nonequal segments. The segments do not necessarily need to be contiguous. For purposes of discussion, assume that directional information is available, and that quadrants 196, 194, 192 and 198 are centered at true north, east, south and west, respectively. Once again, a tool 14 is shown rotating within the borehole 35 and the density instrument rotates through all four quadrants. Detector responses are first sorted according to the quadrant in which they are measured. Apparent segment formation densities are obtained for each segment, with a weighted average of two or more apparent subsegment formation densities being used if two or more linear segments are fitted to data measured within a given azimuthal segment. Using the methodology described in detail in the previous sections of this specification, and summarized as a functional flow chart in FIG. 10, standoff compensated density values ρ_(N), ρ_(E), ρ_(S) and ρ_(W) are then determined from for the formation 32 the quadrants 196, 194, 192 and 198, respectively.

Azimuthal density measurements have many uses. Differing quadrant densities can indicate a highly nonhomogeneous formation 32. As a second example, differing quadrant densities can indicate that a formation bed boundary is being penetrated at an angle by the borehole 35. There are other applications of azimuthal density measurements which are known in the art.

FIG. 14 is a flow chart summarizing the azimuthal density measurement. The borehole is segmented at step 200. As mentioned above, the method is not limited to quadrants, but can comprise any number of azimuthal segments that may be equal or unequal in value. An absolute reference of the tool is established at 202 preferably using information from a directional package conveyed in the drill string. Compensated formation density is computed at 204 using techniques summarized in the flow chart of FIG. 10. Compensated density for each selected segment is recorded as a function of depth within the borehole at 206. Depth is incremented at 208 and the sequence is repeated starting at step 202.

8. Discarding Measurements Made with Excessive Standoff

In general, the spine and rib method is effective for correcting for standoff values of 1.5 in. or less. Standoff values of 1.0 in. or less are preferred. In LWD applications, standoff values of 2 to 3 inches or greater can be encountered. Data measured in segment which encounter these large standoffs are, therefore, essentially meaningless and should be discarded before previously discussed general data processing is initiated.

FIG. 15a illustrates a gamma ray spectrum 501 which is a plot gamma radiation intensity versus gamma ray energy, E_(γ), as measured by a long spaced detector (see detector 24 in FIG. 1). A gamma radiation window ΔE1 is defined by a lower energy 503 and an upper energy 505. An integral of the curve 501 over the range of E_(γ) defined by 503 and 505 yields a measured window count C_(L,ΔE1) shown graphically as a shaded area 502.

FIG. 15b illustrates a gamma ray spectrum 510 which is a plot gamma radiation intensity versus gamma ray energy, E_(γ), as measured by the short spaced detector. A low energy gamma radiation window ΔE2 is defined by a lower energy 516 and an upper energy 518. A high energy gamma radiation window ΔE3 is defined by a lower energy 520 and an upper energy 522. An integral of the curve 510 over the range of Eγ defined by 516 and 518 yields a measured window count C_(S,ΔE2) shown graphically as a shaded area 512. An integral of the curve 510 over the range of E_(γ) defined by 520 and 522 yields a measured window count C_(S,ΔE3) shown graphically as a shaded area 514. Since measured higher energy photons encounter significantly fewer collisions within the well borehole and surrounding formation materials than measured lower energy photons, the high energy window count C_(S,ΔE3) reflects a shallower radial depth of investigation than does the low energy window count C_(S,ΔE2). This effect is the physical basis used to develop criteria for discarding data measured in conditions of excessive tool standoff. Development and implementation of the criteria are set forth in this section of the disclosure.

Response data preferably from the short spaced detector are first sorted, and previously discussed criteria are used to define segments over which standoff is constant. For each segment, count data c(k) within each line segment are summed for each energy window to yield the previously defined window counts C_(L,ΔE1), C_(S,ΔE2) and C_(S,ΔE3). As discussed in previous sections of this disclosure, it is preferable to convert the count sums to count rates using the time intervals over which they span, such as intervals 76, 78 and 80 shown in the example of FIG. 6. An apparent density ρ_(L,ΔE1) for the long spaced detector is computed from the relationship

ρ_(L,ΔE1)=(ln(R _(L,ΔE1) /C _(L,ΔE1))/D _(L,ΔE1))  (11)

where

R_(L,ΔE1) the count rate obtained in energy window ΔE1 from the appropriate linear segment of the long spaced detector response; and

C_(L,ΔE1) and D_(L,ΔE1)=constants functions of detector location and other tool parameters which are determined by calibrating the tool in formations with known densities. An apparent density ρ_(S,ΔE2) for the short spaced detector response in the low energy window ΔE2 is computed from the relationship

ρ_(S,ΔE2)=(ln(R _(S,ΔE2) /C _(S,ΔE2))/D _(S,ΔE2))  (12)

where

R_(S,ΔE2)=the count rate obtained in the low energy window ΔE2 from the appropriate linear segment of the short spaced detector response; and

C_(S,ΔE2) and D_(S,ΔE2)=constants functions of detector location and other tool parameters which are determined by calibrating the tool in formations with known densities. densities. An apparent density ρ_(S,ΔE3) for the short spaced detector response in high energy window ΔE3 is computed from the relationship

ρ_(S,ΔE3)=(ln(R _(S,ΔE3) /C _(S,ΔE3))/D _(S,ΔE3))  (13)

where

R_(S,ΔE) 3=the count rate obtained in high energy window ΔE3 from the appropriate linear segment of the short spaced detector response; and

C_(S,ΔE3) and D_(S,ΔE3)=constants functions of detector location and other tool parameters which are determined by calibrating the tool in formations with known densities. Apparent density difference Δρ_(ΔE1,ΔE3) between the apparent long spaced density ρ_(L,ΔE1) and the apparent density ρ_(S,ΔE2) computed from the lower energy window response of the short spaced detector is then computed from the relationship

Δρ_(ΔE1,ΔE2)=ρ_(L,ΔE1)−ρ_(S,ΔE2)  (14)

Apparent density difference Δρ_(ΔE1,ΔE3) between the apparent long spaced density ρ_(L,ΔE1) and the apparent density ρ_(S,ΔE3) computed from the higher energy window response of the short spaced detector is then computed from the relationship

Δρ_(ΔE1,ΔE3)=ρ_(L,ΔE1)−ρ_(S,ΔE3)  (15)

FIG. 16 is a plot of Δρ_(ΔE1,ΔE2) versus Δρ_(ΔE1,ΔE3) for tool standoff values of 1.0 in. or less, 1.5 in., 2.0 in. and 3.0 in. as designated by points 536, 538, 540, and 542, respectively. A curve 530 has been fitted to points 536 representing a standoff of 1.0 in. or less. The mathematical expression for the curve 530 is

f(Δρ)=2.93(Δρ_(ΔE1,ΔE2))²+5.03(Δρ_(ΔE1,ΔE) ₂)+0.253  (16)

with a correlation coefficient R²=0.96. The function f(Δρ) is, therefore, a “computed” value of Δρ_(ΔE1,ΔE3) obtained from equation (15) using a “measured” value of Δρ_(ΔE1,ΔE2). There is statistical error associated with data points shown in FIG. 16 since the measured parameters are statistical in nature. As with any measurement, there are also systematic errors present. It is apparent from FIG. 16 that most points 536 representing standoffs of 1.0 in. or less fall within the broken lines 532 which are separated by a tolerance range 2ε with respect to the ordinate, and as indicated by the numeral 534.

It should be recalled that the previously discussed spine and rib interpretation method illustrated graphically in FIG. 7 is effective for standoff values of about 1.0 in. or less. Measured data with tool standoff greater than about 1.0 in is preferably discarded in determining compensated bulk density, and other formation and borehole parameters. The relationship illustrated graphically in FIG. 16 and numerically in equation (16) provides an analytical criterion for discarding data. A value Δρ_(ΔE1,ΔE2) is determined from measured data of a line segment using the methods discussed above. This value of Δρ_(ΔE1,ΔE2) is then used in equation (16) to compute the value f(Δρ). The resulting value of f(Δρ) is a data quality indicator, and data quality is determined by comparing f(Δρ) with the corresponding value Δρ_(ΔE1,ΔE3). If Δρ_(ΔE1,ΔE2) deviates from f(Δρ) by more than +\−1.0ε, then the data point is rejected from further processing because is was measured with a tool standoff greater than 1.0 in.

Referring again to FIGS. 15a, 15 b and 16, it is noted that the lower and upper energy values defining the windows ΔE1, ΔE2 and ΔE3, hereafter referred to as window parameters, can be adjusted to maximize the clustering of points 536 around the fitted curve 530. For a standoff threshold of 1.0 in., a very acceptable correlation coefficient R²=0.96 is obtained with ΔE1 (defined by points 503 and 505) ranging from 150 kilo electron volts (KeV) to 500 KeV, ΔE2 (defined by points 516 and 518) ranging from 150 KeV to 250 KeV, and ΔE3 (defined by points 520 and 522) ranging from 300 KeV to 500 KeV. For other standoff thresholds, the window parameters are adjusted to maximize clustering of points about a fitted quality indication function for that standoff threshold.

FIG. 17 illustrates the data quality evaluation process in flow chart form. The window counts C_(L,ΔE1), C_(S,ΔE2) and C_(S,ΔE3) are determined at step 550. Apparent densities ρ_(L,ΔE2), ρ_(S,ΔE2) and ρ_(S,ΔE3) are determined at step 552. Values of Δρ_(ΔE1,ΔE2) and Δρ_(ΔE1,ΔE3) are determined at step 554. The data quality indication function f(Δρ) is computed at step 556. Data quality is determined at step 558 by comparing f(Δρ) and Δρ_(ΔE1,ΔE3). If the absolute value of the difference exceeds ε, then the data point is discarded at step 560. If the absolute value of the difference is less than ε, this indicates that the data were measured with a tool standoff threshold of 1.0 in. or less, and the data point is used in further processing at step 562.

It is noted that other standoff thresholds can be chosen. As an example, the magnitude of the tolerance range 2ε can be selected so that data measured with standoffs greater than 1.5 in. are discarded from further processing. It is further noted that no direct measurement of standoff is required to accepted or discarded data based upon a standoff threshold defined by the quality indicator f(Δρ) and the tolerance range 2ε.

The data quality check can be inserted in the overall data processing methodology illustrated in FIGS. 10 and 14. As an example, the data quality check methodology shown in FIG. 17 can be inserted between steps 148 and 150 in FIG. 10 to accept or discard specific data point before computing bulk density at stem 150.

In the previous development and use of the data quality criteria, the spectral response of the short spaced detector was recorded in two energy windows, and the response of the long spaced detector was recorded in a single window. The use of “high” and “low” energy windows in the short spaced detector is preferred since the short spaced detector typically more sensitive radial depth of investigation. In principle, however, the spectral response of the long spaced detector can be partitioned into a high and low energy window response, and a single energy window response can be used for the short spaced detector. Basic concepts previously described will also yield data quality criteria using this spectral partitioning of detector responses.

All data processing disclosed in this section is preferably performed using a processor 31 as shown in FIG. 1.

9. Azimuthal Measurements Based upon Segments of Constant Density

The basic methods of tool standoff compensation discussed above can be refined to account for azimuthal changes in formation density. The nomenclature and indexing convention introduced in section 3 of this disclosure will again be used.

FIG. 19 illustrates a cross sectional view of a borehole 321 penetrating a formation 318 of azimuthal density ρ₁ on one side and a formation 316 of density ρ₂ on the opposing side. The formations interface at 320. Segments S_(i) identified at 322 represent segments swept by the tool during previously defined time segments t_(i). The illustration is highly conceptualized, and is used for purposes of illustrating data processing methods.

Count rate data C_(SS)(k) and C_(LS)(k) are recorded, and physically insignificant data is discarded as discussed above and as illustrated in FIGS. 15a, 15 b, 16 and 17. For the remaining data, corrected densities ρ_(c)(k) for each of n time intervals Δt are calculated from the long and short spaced density detector responses C_(SS)(k) and C_(LS)(k), using equation (4), and then sorted by magnitude. FIG. 18 illustrates a plot of ρ_(c)(k) as a function of k for the borehole geometry shown in FIG. 19. For segments 322 encompassing formation with density ρ₁, points 326 fall around a portion 324 of a curve drawn through the data and intersecting the ordinate at a point 328 representing ρ₁. For segments 322 encompassing formation with density ρ₂, points 326 fall around a portion 324″ of a curve drawn through the data and projecting to the ordinate at a point 328′ representing ρ₂. For segments in which the detectors “see” the interface 320 and therefore respond to formations of both densities ρ₁ and ρ₂, points 326 fall around a portion of curve 324′ in a transition zone 327.

The count rates C_(SS)(k) and C_(LS)(k) are small in magnitude and, therefore exhibit large statistical uncertainties. These large statistical uncertainties are propagated into the corresponding calculations of ρ_(c)(k). Statistical precision of the azimuthal density measurements is maximized by determining formation density segments of constant magnitude using the same basic method used to determine segments of constant standoff. The values ρ_(c)(k) are sorted by magnitude, and the sorted values are defined as ρ(p).

A plot of ρ(p) as a function of corresponding time intervals Δt is shown in a hypothetical illustration in FIG. 20. Points 343 represent the sorted samples ρ(p) encompassing p=1 to n, over the entire time segment t_(s) shown at 364. Only a few ρ(p) points 343 are shown for clarity.

Still referring to FIG. 20, a horizontal line 370 is fitted to the first h values of ρ(p), preferably using the least squares fit method, where p=(1, . . . , h). A goodness of fit parameter is obtained, such as chi-square. If the fit parameter is less than a predetermined fit value, another point ρ(h+1) is added and a new fit parameter is obtained. This process is repeated until the fit parameter exceeds the predetermined fit value. This is illustrated conceptually by the point 343′. A first horizontal line segment 370 is fitted to these data representing a sector of constant density. The segment spans a time interval t₁ shown at 376. The entire process is again repeated, starting with the specific value of ρ(p) identified as 343′, and continued until the fit parameter exceeds the predetermined fit value at a point 343″. A second horizontal line segment 372 is fitted to the data which spans a time interval t₂ shown at 378. The entire process is yet again repeated starting with a specific value of ρ(p) identified as 343″, and ending with the final value ρ(n) yielding a third horizontal line segment 374 is fitted to these data which span the time interval t₃. In the hypothetical example shown in FIG. 20, three horizontal line segments 370, 372 and 374 are fitted to all of the data ρ(p) falling within sample period t_(s), and each line segment represents a sector of constant density.

It should be understood that other methods can be used to group interval compensated density values of essentially the same value, and to relate the number of such compensated density values within the group to the time interval t_(i) corresponding to the group.

Corrected density ρ_(c,i) over each azimuthal segment i is determined using the relationship $\begin{matrix} {{\underset{\_}{\rho}(p)} = {\left( {\sum\limits_{p = 1}^{n^{\prime}}\quad {\underset{\_}{\rho}(p)}} \right)/n^{\prime}}} & (17) \end{matrix}$

where n′ is the total number of values of ρ(n) over the time interval t_(i).

The method above yields a group of time segments t_(i) over which corrected density is essentially constant. As illustrated in the discussion of segmented standoff measurements, the method of segmented density measurements yields azimuthal density measurements which are much more statistically precise than those that could be obtained form spine and rib calculations of data measured during a single time interval Δt.

Once segmented density measurements are determined, corresponding constant standoff segments for each time segment t_(i) are then determined using methodology discussed previously in section 3 and illustrated graphically in FIG. 6. Attention is directed to FIG. 21 which is a plot of integral detector counts I(p) (see section 3) as a function of time intervals within a time segment t_(i). In FIG. 21, the time segment is defined by azimuthal regions of essentially constant density. A time segment t_(i) with i=1, as shown in FIG. 21 at 264, is used as an example. The method applies, however, for all valves of t_(i). The points 243 represent the sorted and integrated count samples I(p) encompassing p=1 to n, over the entire time segment t₁. Only a few I(p) points 243 are shown for clarity of the illustration. A nonlinear curve 268 is drawn through the data points 243 to illustrate a LWD density tool operating with varying standoff, even though the corrected density remains essentially constant.

Still referring to FIG. 21, a straight line 270, shown as a broken line, is fitted to the first h values of I(p) where p=1, . . . ,h, and a goodness of fit parameter is obtained such as chi-square. If the fit parameter is less than a predetermined fit value, another point I(h+1) is added and a new fit parameter is obtained. This process is repeated until the fit parameter exceeds the predetermined fit value, and the first straight line segment 270 is thereby determined. The segment spans a time interval t_(1,1) shown at 276. The entire process is again repeated starting with the specific value of I(p) identified as 243′, and a second straight line segment 272 is thereby determined which spans a time interval t_(1,2) shown at 278. The entire process is yet again repeated starting with a specific value of I(p) identified as 243″, and ending with the final value I(n) in the yielding a third straight line segment 274, which spans the time interval t_(1,3) shown at 280. In the hypothetical example shown in FIG. 6, three straight line segments 270, 272 and 274 are fitted to all of the data I(p) falling within sample period t₁, which encompasses a region of essentially constant corrected density.

The data processing methods discussed above and illustrated in FIGS. 20 and 21 not only improve the accuracy of previously discussed tool standoff measurements, but also detects with precision and accuracy azimuthal changes in formation density as the tool is conveyed along the well borehole. This information is useful in determining formation bed boundaries, especially in situations where the borehole is penetrating layers formations at a steep angle.

The method of processing data by constant density segmentation as well as constant standoff segmentation also serves as an alternative method for presenting azimuthal formation density data. Instead of having predetermined quadrants (see FIG. 13) over which average formation density is calculated, the method graphically shown in FIGS. 20 and 21 can determine boundaries over which formation density is changing.

With suitable tool orientation and directional sensors 15 as shown in FIG. 23, the methodology yielding azimuthal density can be combined with tool depth measurements to yield a continuous image of formation density. A hypothetical example of such an image is shown in FIG. 22. The abscissa of the illustration represents the azimuth of the tool with respect to a reference point, such as true north, and the ordinate represents the depth of the tool within the borehole. A thin bed of density ρ₂ and thickness 296 is shown bounded by beds of density ρ₁. The thin bed is slanting or “dipping” with respect to the angle of the borehole. with the high or “updip” side of the bed at 180 degrees and the “downdip” side at 0 degrees. The top of the updip side of the bed occurs at a depth 296 and extends to a depth 298. The downdip side of the bed occurs at a depth 297 and extends to a depth of 299.

Even without directional sensors 15, the method of density segmentation can be used to determine the number of different azimuthal densities, magnitudes of all of these densities, and the fraction of the borehole over which each density occurs.

10. Correcting Neutron Data Using Standoff Segmentation from the Density Tool

FIG. 23 illustrates a LWD tool 14 containing a preferably dual detector density tool 18 and a neutron tool 19 in close proximity to the density tool. The neutron tool contains a source (not shown) such as an isotopic or accelerator type source of neutrons, and one or more detectors (not shown) which respond to fast, epithermal, or thermal neutrons. As discussed previously, the neutron tool responds primarily to the hydrogen content of the borehole environs. If it is assumed that most hydrogen is contained in pore space of the formation and not in the rock matrix, then the tool response to hydrogen concentration can be related to formation porosity. Unfortunately, hydrogen is usually also present in fluid within the borehole, therefore the neutron tool response is also affected by borehole size, drilling fluid or “mud” weight, drilling mud salinity, and tool standoff. Formation porosity measurements, and any other measurements obtained from the neutron tool, must be corrected for these effects in order to obtain accurate parametric measurements. Previously discussed standoff data obtained from the density tool can be used to correct the neutron tool response for borehole size and standoff effects.

The diameter of the density tool is defined as D. This will be the diameter of the stabilizer blade 14′ (see FIG. 23) if the tool is a LWD tool. If the density tool is embodied for wireline applications, D will represent the diameter of the density “pad” (not shown). The diameter of the neutron tool is defined as C. This will also be the diameter of the collar 14 if the tool is embodied as a LWD tool as shown in FIG. 23. For wireline embodiments, the diameter of the neutron subsection is C. Values of C and D are, of course, known. Using terminology defined in the above discussion of segmented standoff measurements with the density tool, assume that n segments of standoff S_(i) are measured by the density tool. The average diameter d_(ave) of the borehole 34 is

d _(ave) =D+Σ(S _(i))/n  (18)

and the standoff S_(neu,i) for the neutron tool in segment S_(i) is

S _(neu,i) =S _(i) +D−C  (19)

The values of d_(ave) and S_(neu,i) are then used to correct the response of the neutron tool in each segment i for borehole size and standoff, respectively, using calibration methods, charts and algorithms known in the art. Neutron borehole and standoff corrections are applied for each standoff segment using the average borehole size and neutron tool standoff for each standoff segment S_(neu,i) to provide average corrected neutron parametric measurements such as neutron porosity.

FIG. 24 illustrates a flow chart incorporating segmented standoff measurements to correct a neutron porosity measurement for neutron tool standoff and for borehole size. Density tool detector count rates C(k) are measured at step 442 and sorted at step 444 as discussed previously. Physically insignificant data are discarded as previously discussed and illustrated conceptually in FIGS. 15a. 15 b, 16 and 17. The previously defined count integrals I(k) are computed at step 446, segments are fitted at step 448, and density standoff segments S_(i) are computed at step 450. Borehole diameter d_(ave) and neutron tool standoff S_(neu,i) are computed using equations (7) and (8), respectively, at step 452. Corrected neutron porosity Φ_(n) is computed at step 454 using values of d_(ave), neutron tool standoff S_(neu,i) and previously known calibration constants. Corrected neutron porosity Φ_(n) is plotted as a function of depth at step 458. Density tool count rates are then incremented at step 456, and the process is repeated thereby forming the desired corrected neutron porosity log as the tool 14 moves along the well borehole.

11. Alternate Methods for Computing Corrected Formation Density

There are other variations of the standoff segmentation and constant density segmentation that can be used in appropriate situations to optimize accuracy and precision of borehole and formation parameters of interest. These methods are summarized as follows:

(a) Given a range of rotational speed of the drilling instrument 14 (see FIGS. 1 and 23), apparent and corrected densities as previously defined are calculated for each small sample Δt and an average corrected density is calculated for the entire sample collected over time t_(s) by averaging the corrected densities.

(b) Method (a) with a provision to eliminate some of the small samples based upon the corresponding standoff value calculated from the spine and rib correction using apparent and corrected densities. As an example, it may be desirable not to include density values in the average that are measured at a relatively large standoff.

(c) Average the apparent densities measured by each detector of the density tool, and then apply a correction for the entire sample t_(s) using the average apparent densities. This is equivalent to calculating a geometric mean rather than an arithmetic mean of the detector count rates.

(d) Method (c) with a provision to eliminate some of the small samples based upon the corresponding standoff value calculated from the spine and rib correction using apparent and corrected densities. Again as an example, it may be desirable not to include density values in the average that are measured at a relatively large standoff. 

What is claimed is:
 1. A method for determining tool standoff relative to a standoff threshold using the responses of first and second gamma radiation detectors axially spaced within the tool, the method comprising: (a) measuring a first response in a single energy window of said first detector; (b) measuring a second response in a low energy window of said second detector; (c) measuring a third response in a high energy window of said second detector; (d) computing a first apparent density from said first response and a second apparent density from said second response and a third apparent density from said third response; (e) computing a first density difference by combining said first apparent density and said second apparent density, and computing a second density difference by combining said first apparent density and said third apparent density; and (f) combining said first density difference and said second density difference with a predetermined quality indicator to determine said tool standoff relative to said standoff threshold.
 2. The method of claim 1 wherein: (a) said first detector is axially positioned a first distance from a source of gamma radiation disposed within said tool; (b) said second detector is axially positioned a second distance from said source; and (c) said first distance is greater than said second distance.
 3. The method of claim 1 comprising the additional steps of setting window parameters of said single energy window and said low energy window and said high energy window to define said standoff threshold.
 4. The method of claim 3 wherein: (a) said window parameters for said single energy window extend from about 150 KeV to about 500 KeV; (b) said window parameters for said low energy window extend from about 150 KeV to about 250 KeV; and (c) said window parameters for said high energy window extend from about 300 KeV to about 500 KeV.
 5. The method of claim 4 wherein said standoff threshold is about one inch.
 6. The method of claim 1 comprising the additional step of conveying said tool along a borehole with a drill string.
 7. A method for utilizing responses of a first radiation detector and a second radiation detector axially disposed within a tool, said utilization being based upon tool standoff from a wall of a borehole relative to a standoff threshold, the method comprising the steps of: (a) defining a single energy window in said response of said first radiation detector; (b) defining a low energy window and a high energy window in said response of said second radiation detector; (c) combining radiation measured in said single energy window and radiation measured in said low energy window and said high energy window with a quality indicator to determine if said tool standoff exceeds said standoff threshold; and (d) discarding said responses from processing if said tool standoff exceeds said standoff threshold.
 8. The method of claim 7 wherein said processing yields a measure of a parameter of earth formation penetrated by said borehole, and comprises the additional steps of: (a) measuring said responses of said first radiation detector and said second radiation detector over a time interval; (b) sorting by magnitude said responses collected over a sample period from said first radiation detector into sorted first detector responses; (c) determining a magnitude of said tool standoff during a time segment from said at sorted first detector responses; (d) combining said standoff magnitude with said responses collected over said sample period from said second radiation detector to determine said property of earth formation, wherein said property is corrected for adverse effects of said standoff magnitude.
 9. The method of claim 8 wherein: (a) said first radiation detector is axially positioned a first distance from a source of radiation disposed within said tool; (b) said second radiation detector is positioned a second distance from said source; and (c) said first distance is greater than said second distance.
 10. The method of claim 7 comprising the additional steps of setting window parameters of said single energy window and said low energy window and said high energy window to define said standoff threshold.
 11. The method of claim 10 wherein; (a) said source of radiation emits gamma radiation; and (b) said parameter of earth formation is density.
 12. The method of claim 11 wherein: (a) said detector responses are gamma radiation spectral responses; (b) said window parameters for said single energy window extend from a gamma ray energy of about 150 KeV to about 500 KeV; (c) said window parameters for said low energy window extend from a gamma ray energy of about 150 KeV to about 250 KeV; and (d) said window parameters for said high energy window extend from a gamma ray energy of about 300 KeV to about 500 KeV.
 13. The method of claim 12 wherein said standoff threshold is about one inch.
 14. The method of claim 7 comprising the additional step of conveyed said tool along said borehole with a drill string.
 15. A method for determining a property of earth formation penetrated by a borehole, comprising the steps of: (a) positioning first and second axially spaced radiation detectors within said borehole; (b) measuring a plurality of detector responses from each of said first and second radiation detectors over a time interval; (c) sorting by magnitude said detector responses collected over a sample period from said first detector into sorted first detector responses; (d) defining a single energy window in said response of said first radiation detector; (e) defining a low energy window and a high energy window in said spectral response of said second radiation detector; (f) combining radiation measured in said single energy window and radiation measured in said low energy window and radiation measured in said high energy window with a quality indicator and a tolerance range to determine if standoff of said axially spaced first and second detectors from a wall of said borehole exceeds a standoff threshold; (g) discarding from said sorted first detector response those said detector responses collected over said sample period during which said standoff threshold is exceeded; (h) determining a magnitude of standoff of said first detector from said borehole wall during a time segment using said sorted first detector responses; and (i) combining said standoff magnitude with said second detector response measured during said time segment to determine said property of earth formation, wherein said determined property of earth formation is corrected for adverse effects of said standoff magnitude.
 16. The method of claim 15, further comprising the steps of: (a) computing running integral sums from said sorted first detector responses; (b) fitting at least one linear segment to said running integral sums over said time segment; and (c) determining said standoff magnitude during said time segment from a slope of said at least one linear segment.
 17. The method of claim 16 wherein said property of earth formation is density.
 18. The method of claim 15 comprising the additional step of conveying said first and said second axially spaced detectors along said borehole with a drill string.
 19. An apparatus for determining tool standoff relative to a standoff threshold, comprising: (a) a first gamma radiation detector axially disposed within said tool and measuring a first response in a single energy window; (b) a second gamma radiation detector axially disposed within said tool and measuring (i) a second response in a low energy window, and (ii) a third response in a high energy window; and (c) a processor for (i) computing a first apparent density from said first response and a second apparent density from said second response and a third apparent density from said third response, (ii) computing a first density difference by combining said first and said second apparent densities and computing a second density difference by combining said first and said third apparent densities, and (iii) combining said first density difference and said second density difference with a predetermined quality indicator to determine said tool standoff relative to said standoff threshold.
 20. The apparatus of claim 19 further comprising a source of gamma radiation disposed within said tool, wherein: (a) said first gamma radiation detector is axially disposed a first distance from a source (b) said second gamma radiation detector is axially disposed a second distance from said source; and (c) said first distance is greater than said second distance.
 21. The apparatus of claim 20 wherein window parameters of said single energy window and said low energy window and said high energy window define the value of said standoff threshold.
 22. The apparatus of claim 21 wherein: (a) said window parameters for said single energy window extend from about 150 KeV to about 500 KeV; (b) said window parameters for said low energy window extend from about 150 KeV to about 250 KeV; and (c) said window parameters for said high energy window extend from about 300 KeV to about 500 KeV.
 23. The apparatus of claim 22 wherein said standoff threshold is about one inch.
 24. The apparatus of claim 23 wherein said tool is conveyed along a borehole with a drill string. 